import request  from '@/utils/request';

import { BASE_URL } from '@/config/query';

export async function queryProblemPage(params) {
  return request(`${BASE_URL}/report_template_question/page`, params)
}

export async function queryProblemInfoById(id) {
  return request(`${BASE_URL}/report_template_question/detail/${id}`)
}

export async function createProblem(params) {
  return request(`${BASE_URL}/report_template_question/create`, params)
}

export async function updateProblem(params) {
  return request(`${BASE_URL}/report_template_question/modify`, params)
}

export async function deleteProblem(id) {
  return request(`${BASE_URL}/report_template_question/remove/${id}`)
}
